package seres;

public abstract class Guerrero extends SerVivo{

	protected String soy;
	protected int blanco;
	
	private int generaBlanco(){
		return (int)(Math.random()*10);
	}
	
	public int getBlanco(){
		return this.blanco;
	}
	
	public int dispara(){
		if (vivo){
			int disparo=((int)(Math.random()*10));
			System.out.println(soy+" dispara no. "+disparo);
			return disparo;
		} else
			return 100;
	}
	
	public Guerrero(String soy){
		blanco=generaBlanco();
		this.soy=soy;
	}
        
        public abstract void recibeDisparo(int i);

}